/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.suspend.remote;

import android.content.Context;
import android.os.Handler;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

public class d {
    private Context a;
    private e b;
    private Handler c;
    private ScheduledExecutorService d;

    public d(Context paramContext, Handler paramHandler) {
        this.a = paramContext;
        this.c = paramHandler;
    }

    public void a() {
        if (this.b != null)
            return;
        if (this.b != null)
            return;
        try {
            this.b = new e(this.c, this.a);
            this.d = Executors.newSingleThreadScheduledExecutor();
            this.d.scheduleWithFixedDelay(this.b, 0L, 3000L, TimeUnit.MILLISECONDS);
        } catch (Exception localException) {}
    }

    public String b() {
        if (this.b != null)
            return this.b.b();
        return null;
    }

    public boolean c() {
        if (this.b != null)
            return this.b.a();
        return false;
    }

    public void a(String paramString) {
        if (this.b == null)
            return;
        this.b.a(paramString);
    }

    public void a(a parama) {
        if (this.b == null)
            return;
        this.b.a(parama);
    }

    public void a(boolean paramBoolean) {
        if (this.b == null)
            return;
        this.b.a(paramBoolean);
    }

    public void d() {
        this.d.shutdown();
    }
}